package com.zx.nacosconsumer.fallback;

import com.zx.nacosconsumer.service.FeignClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @Description ProviderFallback 熔断类
 * @Author Zhang Xin
 * @Date 2020/7/23
 */
@Component
public class ProviderFallback implements FeignClientService {

    @Override
    public String hi(String name) {
        return "现在服务器忙，请稍后再试！";
    }
}

